package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 住户管理对象 t_resident
 * 
 * @author ruoyi
 * @date 2022-10-15
 */
public class TResident extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 小区名 */
    @Excel(name = "小区名")
    private Long communityId;

    private TCommunity community;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private Long buildingId;

    private TBuilding building;

    /** 住户 */
    @Excel(name = "住户")
    private String resident;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private Long phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 描述 */
    @Excel(name = "描述")
    private String description;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setResident(String resident) 
    {
        this.resident = resident;
    }

    public String getResident() 
    {
        return resident;
    }
    public void setPhone(Long phone) 
    {
        this.phone = phone;
    }

    public Long getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public TCommunity getCommunity() {
        return community;
    }

    public void setCommunity(TCommunity community) {
        this.community = community;
    }

    public TBuilding getBuilding() {
        return building;
    }

    public void setBuilding(TBuilding building) {
        this.building = building;
    }

    @Override
    public String toString() {
        return "TResident{" +
                "id=" + id +
                ", communityId=" + communityId +
                ", community=" + community +
                ", buildingId=" + buildingId +
                ", building=" + building +
                ", resident='" + resident + '\'' +
                ", phone=" + phone +
                ", address='" + address + '\'' +
                ", state='" + state + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
